<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <meta name="author" content="order by dede58.com"/>
    <title>DeathGhost-我的购物车</title>
    <meta name="keywords" content="DeathGhost,DeathGhost.cn,web前端设,移动WebApp开发" />
    <meta name="description" content="DeathGhost.cn::H5 WEB前端设计开发!" />
    <meta name="author" content="DeathGhost"/>
    <link href="/style/style.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/js/public.js"></script>
    <script type="text/javascript" src="/js/jquery.js"></script>
    <script type="text/javascript" src="/js/jqpublic.js"></script>
    <script type="text/javascript" src="/js/cart.js"></script>
    <!--
    Author: DeathGhost
    Author URI: http://www.deathghost.cn
    -->
    <script>

        function min1(id){
            window.location.href="/cart/cartSub?id="+id;
        }


        function add1(id){
            window.location.href="/cart/cartAdd?id="+id;
        }


        function saveCart(){
            document.getElementById("cartForm").submit();
        }

    </script>
</head>
<body>
<header>
    <jsp:include   page="commen/head.jsp" flush="true"/>
</header>
<!--Start content-->
<form id="cartForm" >
    <div class="gwc" style=" margin:auto;">
        <table cellpadding="0" cellspacing="0" class="gwc_tb1">
            <tr>
                <td class="tb1_td1"><input id="Checkbox1" type="checkbox"  class="allselect"/></td>
                <td class="tb1_td1">全选</td>
                <td class="tb1_td3">商品</td>
                <td class="tb1_td5">数量</td>
                <td class="tb1_td6">单价</td>
                <td class="tb1_td7">操作</td>
            </tr>
        </table>
<c:forEach var="cart" items="${carts}">
        <table cellpadding="0" cellspacing="0" class="gwc_tb2" id="table1">
            <tr>
                <td colspan="7" class="shopname Font14 FontW">店铺：${cart.name}</td>
            </tr>
            <tr>
                <td class="tb2_td1"><input type="checkbox"  value="${cart.id}" name="checkId" id="newslist-1" /></td>
                <td class="tb2_td2"><a href="detailsp.html" target="_blank"><img src="${cart.image}"/></a></td>
                <td class="tb2_td3"><a href="detailsp.html" target="_blank">${cart.pname}</a></td>
                <td class="tb1_td5">
                    <input id="min1" onclick="min1(${cart.id})" name=""  style="width:30px; height:30px;border:1px solid #ccc;" type="button" value="-" />
                    <input id="text_box1" name="" type="text" value="${cart.num}" style=" width:40px;height:28px; text-align:center; border:1px solid #ccc;" />
                    <input id="add1" onclick="add1(${cart.id})" name="" style="width:30px; height:30px;border:1px solid #ccc;" type="button" value="+" />
                </td>
                <td class="tb1_td6"><label id="total1" class="tot" style="color:#ff5500;font-size:14px; font-weight:bold;">${cart.money}</label></td>
                <td class="tb1_td7"><a href="/cart/del?id=${cart.id}" id="delcart1">删除</a></td>
            </tr>
        </table>
</c:forEach>
        <table cellpadding="0" cellspacing="0" class="gwc_tb3">
            <tr>
                <td class="tb1_td1"><input id="checkAll" class="allselect" type="checkbox" /></td>
                <td class="tb1_td1">全选</td>
                <td class="tb3_td1"><input id="invert" type="checkbox" />
                    反选
                    <input id="cancel" type="checkbox" />
                    取消 </td>
                <td class="tb3_td2 GoBack_Buy Font14"><a href="/" target="_blank">继续购物</a></td>
                <td class="tb3_td2">已选商品
                    <label id="shuliang" style="color:#ff5500;font-size:14px; font-weight:bold;">0</label>
                    件</td>
                <td class="tb3_td3">合计(不含运费):<span>￥</span><span style=" color:#ff5500;">
        <label id="zong1" style="color:#ff5500;font-size:14px; font-weight:bold;">0.00</label>
        </span></td>
                <td class="tb3_td4"><span id="jz1">结算</span><a  onclick="saveCart()" style="display:none;"  class="jz2" id="jz2">结算</a></td>
            </tr>
        </table>
    </div>
</form>
<!--End content-->
<div class="F-link">
    <span>友情链接：</span>




</div>
<footer>
    <section class="Otherlink">
        <aside>
            <div class="ewm-left">
                <p>手机扫描二维码：</p>
                <img src="images/Android_ico_d.gif">
                <img src="images/iphone_ico_d.gif">
            </div>
            <div class="tips">
                <p>客服热线</p>
                <p><i>1830927**73</i></p>
                <p>配送时间</p>
                <p><time>09：00</time>~<time>22:00</time></p>
                <p>网站公告</p>
            </div>
        </aside>
        <section>
            <div>
                <span><i class="i1"></i>配送支付</span>
                <ul>
                    <li><a href="article_read.html" target="_blank" title="标题">支付方式</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">配送方式</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">配送效率</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">服务费用</a></li>
                </ul>
            </div>
            <div>
                <span><i class="i2"></i>关于我们</span>
                <ul>
                    <li><a href="article_read.html" target="_blank" title="标题">招贤纳士</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">网站介绍</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">配送效率</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">商家加盟</a></li>
                </ul>
            </div>
            <div>
                <span><i class="i3"></i>帮助中心</span>
                <ul>
                    <li><a href="article_read.html" target="_blank" title="标题">服务内容</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">服务介绍</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">常见问题</a></li>
                    <li><a href="article_read.html" target="_blank" title="标题">网站地图</a></li>
                </ul>
            </div>
        </section>
    </section>
    <div class="copyright">© 版权所有 2020
</footer>
</body>
</html>
